#ifndef CheckSign_H
#define CheckSign_H

#include <windows.h>
#include <Wincrypt.h>

#ifdef __cplusplus
   #define EXTERN_C     extern "C"
#else
   #define EXTERN_C     extern
#endif

EXTERN_C BOOL CheckSign( TCHAR* file1, TCHAR *file2);

EXTERN_C BYTE* LoadData (TCHAR* fileName, DWORD *bufferSize);

EXTERN_C int CreateCryptoProvider ( HCRYPTPROV* phCryptProv);
EXTERN_C int CreateCryptoKey      ( HCRYPTPROV hCryptProv, HCRYPTKEY* hKey, TCHAR* fileName );

EXTERN_C int VerifyBuffer( HCRYPTPROV hCryptProv, 
				  HCRYPTKEY hPubKey, 
				  BYTE* buffer, DWORD bufferSize, 
			      BYTE* sign  , DWORD signSize );

#endif

